// src/router/index.js
import { createRouter, createWebHistory } from 'vue-router';
import CanvasVideo from '../components/CanvasVideo.vue';  // 路由页面组件
import HelloWorld from '../components/HelloWorld.vue';  // 路由页面组件
import VideoHuman from '../components/VideoHuman.vue';  // 路由页面组件
import VideoHumanJumpTest from '../components/VideoHumanJumpTest.vue';  // 路由页面组件
import ImageHuman from '../components/ImageHuman.vue';  // 路由页面组件
import ImageHumanTest from '../components/ImageHumanTest.vue';
import ImageHumanTest2 from "@/components/ImageHumanTest2.vue";
import BaiduImageHumanTest2 from "@/components/BaiduImageHumanTest2.vue";  // 路由页面组件





const routes = [
    {
        path: '/',
        name: 'VideoHuman',
        component: VideoHuman
    },
    {
        path: '/VideoHumanJumpTest',
        name: 'VideoHumanJumpTest',
        component: VideoHumanJumpTest
    },
    {
        path: '/ImageHuman',
        name: 'ImageHuman',
        component: ImageHuman
    },
    {
        path: '/ImageHumanTest',
        name: 'ImageHumanTest',
        component: ImageHumanTest
    },
    {
        path: '/ImageHumanTest2',
        name: 'ImageHumanTest2',
        component: ImageHumanTest2
    },
    {
        path: '/BaiduImageHumanTest2',
        name: 'BaiduImageHumanTest2',
        component: BaiduImageHumanTest2
    },
    {
        path: '/CanvasVideo',
        name: 'CanvasVideo',
        component: CanvasVideo
    },
    {
        path: '/HelloWorld',
        name: 'HelloWorld',
        component: HelloWorld
    }
];

// 创建路由实例
const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;
